package com.pureut.system.mapper;

import com.pureut.system.domain.SysVerification;
import com.pureut.system.domain.SysVerificationDetailed;

import java.util.List;

/**
 * @Description 编码检验规则 数据层
 * @Param
 * @return
 * @Date
 * @Author hl
 **/
public interface SysVerificationMapper {

    /**
     * 查询编码检验
     * @param sysVerification
     * @return
     */
    List<SysVerification> selectVerificationList(SysVerification sysVerification);

    /**
     * 根据id查询编码校验
     * @param verId
     * @return
     */
    List<SysVerification> selectVerificationById(long verId);

    /**
     * 新增编码校验
     * @param sysVerification
     * @return
     */
    int insertVerification(SysVerification sysVerification);

    /**
     * 新增编码校验明细
     * @param list
     * @return
     */
    int insertVerificationDetailed(List<SysVerificationDetailed> list);

    /**
     * 修改编码校验
     * @param sysVerification
     * @return
     */
    int updateVerification(SysVerification sysVerification);

    /**
     * 删除编码校验明细
     * @param detVerificationId
     * @return
     */
    int deleteVerificationDetailedById(long detVerificationId);

    /**
     * 删除编码检验
     * @param verIdS
     * @return
     */
    int deleteVerificationById(String[] verIdS);

    /**
     * 判断规则编码是否唯一
     * @param verTheRules
     * @return
     */
    SysVerification selectVerificationUnique(String verTheRules);

    /**
     * 根据编码校验id查询明细
     * @param verId
     * @return
     */
    List<SysVerificationDetailed> selectVerificationDetailed(Long verId);
}
